package com.weds.edpf.core .service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.List;

import com.weds.core.base.BaseService;
import com.weds.edpf.core.mapper .AcDepDeleteMapper;
import com.weds.edpf.core.entity .AcDepDeleteEntity;

/**
 * @Author sxm
 * @Description AcDepDelete管理
 * @Date 2020-06-11
 */
@Service
public class AcDepDeleteService extends BaseService {

	@Autowired
	private AcDepDeleteMapper acDepDeleteMapper;

	private Logger log = LogManager.getLogger();

	public int deleteByPrimaryKey(Integer depSerial) {
		return acDepDeleteMapper.deleteByPrimaryKey(depSerial);
	}

	public int insert(AcDepDeleteEntity record) {
		return acDepDeleteMapper.insert(record);
	}

	public int insertSelective(AcDepDeleteEntity record) {
		return acDepDeleteMapper.insertSelective(record);
	}

	public AcDepDeleteEntity selectByPrimaryKey(Integer depSerial) {
		return acDepDeleteMapper.selectByPrimaryKey(depSerial);
	}

	public int updateByPrimaryKeySelective(AcDepDeleteEntity record) {
		return acDepDeleteMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(AcDepDeleteEntity record) {
		return acDepDeleteMapper.updateByPrimaryKey(record);
	}

    	public List<AcDepDeleteEntity> selectListByEntity(AcDepDeleteEntity record) {
		return acDepDeleteMapper.selectListByEntity(record);
	}
	
	

        public int deleteBatchByKeys(List<AcDepDeleteEntity> list) {
        return acDepDeleteMapper.deleteBatchByKeys(list);
    }
    
    	public int insertBatch(List<AcDepDeleteEntity> list) {
		return acDepDeleteMapper.insertBatch(list);
	}
	}
